package me.lcc.demo.chapter1.topic8;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * for的语法糖：foreach
 */
public class CheckForDemo {

	@SuppressWarnings({ "unused", "rawtypes" })
	public static void main(String[] args) {
		List<String> ls = new ArrayList<>();
		ls.add("a");
		for (Iterator i$ = ls.iterator(); i$.hasNext();) {
			String i$$ = (String)i$.next();
			System.out.println(i$$);
		}
		for (Iterator $i = ls.iterator(); $i.hasNext();) {
			String $$i = (String)$i.next();
			System.out.println($$i);
		}
		for (Iterator i = ls.iterator(); i.hasNext();) {
			String $i = (String)i.next();
			String i$ = $i;
			System.out.println($i);
		}
	}
	
	@SuppressWarnings("unused")
	public void m1() {
		List<String> ls = new ArrayList<>();
		ls.add("a");
		for (String s : ls) {
			
		}
//		for(Iterator i$ = list.iterator(); i$.hasNext();) {
//      	String s = (String) i$.next(); 
//  	}
	}
	public void m2() {
		List<String> ls = new ArrayList<>();
		ls.add("a");
		for (int i = 0; i < ls.size(); i++) {
			
		}
	}
}
